@echo off

goto dbg_bgn
@echo 48-5D-60-61-3D-CB | findstr "[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]"
echo %errorlevel%
exit /B 0

:dbg_bgn1
@echo 48-5D-60-61-3D-CB | findstr "[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]-[A-Fa-f0-9][A-Fa-f0-9]"
echo %errorlevel%
exit /B 0

:dbg_bgn
@echo off
for /f "tokens=1-3 delims=-/ " %%1 in ("%date%") do set ddd=%%1%%2%%3
for /f "tokens=1-4 delims=.: " %%1 in ("%time%") do set tttt=%%1%%2%%3%%4
Set DT=%ddd%%tttt%

echo date %ddd%
echo time %tttt%
echo %DT%
echo %errorlevel%
exit /B 0


@echo on

setlocal enabledelayedexpansion

@rem for /f "tokens=4" %%i in ('getmac -v^|findstr /i "stopped"') do echo %%i
@rem for /f "tokens=4" %%i in ('getmac -v^|findstr /c:"Bluetooth Devic"') do echo %%i
@rem for /f "tokens=4" %%i in ('getmac -v ^|findstr /c:"Bluetooth Devic"') do echo %%i

for /f "tokens=4" %%i in ('getmac -v ^|findstr /c:"Bluetooth Devic"') do (
    echo %%i
    set strmac=%%i
    echo !strmac!
)

Set "strmac=!strmac:-=!"
echo !strmac!

exit /B 0

